#include "mywidget.h"
#include <QApplication>
#include<QDesktopWidget>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MyWidget w(a.desktop()->width());
    QSize size=a.desktop()->screenGeometry().size();
    w.resize(size);
    w.show();
    return a.exec();
}
